<template>
  <div class="header item-header _cover-top frame-1px">
    <div class="header-reat">
      <slot name="headBox">
        <div class="top-back">
          <span @click="back()">返回</span>
        </div>
      </slot>
    </div>
  </div>
</template>

<script>
  export default {
    data () {
      return {
        decline: false,
        searchName: '搜索',
        returnName: '返回'
      }
    },
    props: {
      title: {
        type: String,
        default: 'vdobim'
      }
    },
    components: {

    },
    methods: {
      back () {
        let router = this.$route.name
        this.$router.back()
      }
    },
    computed: {
    },
    created(){

    },
    watch: {
      $route(to, from) {
      }
    }
  }
</script>

<style  scoped>
  .header-reat {
    position: relative;
    display: flex;
    flex: 1;
    height: .44rem;
    align-items: center;
    justify-content: center;
    padding: $pd-lf;
  }
  .item-header {
    display: flex;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    height: .44rem;
    background-color: #fff;
    justify-content: center;
    align-items: center;
    z-index: 497;
  }
</style>
